package com.yeskery.nut.web.demo.common;

import java.lang.annotation.*;

/**
 * 登录认证注解
 * @author Yeskery
 * 2023/7/28
 */
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Auth {

    /**
     * 是否必须登录
     * @return
     */
    boolean required() default true;
}
